package com.cai310.lottery.common.keno;

import java.math.BigDecimal;

public enum WonType {
	ADD0PER("不加奖返佣金",1D,0D),
	
	ADD10PER("加奖10%(5点佣金)",1.1D,5D),
	/** 状态:当前期 */
	ADD20PER("加奖20%(10点佣金)",1.2D,10D);               
	private final String typeName;
	
	private final Double zoom;
	
	private final Double needRebate;
	private WonType(String typeName,Double zoom,Double needRebate) {
		this.typeName = typeName;
		this.zoom = zoom;
		this.needRebate = needRebate;
	}
	
	public Double getZoom() {
		return zoom;
	}

	public String getTypeName() {
		return typeName;
	}
	public BigDecimal getZoomMoney(BigDecimal money){
		return money.multiply(BigDecimal.valueOf(this.zoom));
	}
	public BigDecimal getZoomMoney(Integer cost){
		return BigDecimal.valueOf(this.zoom).multiply(BigDecimal.valueOf(cost));
	}

	public Double getNeedRebate() {
		return needRebate;
	}
}
